import { Schema, Types, model } from 'mongoose'
// gpt会话
const GptFacebackSchema = new Schema(
  {
    user_id: {
      type: Types.ObjectId,
      ref: 'GptUser'
    },
    star: {
      type: Number,
      required: true
    },
    content: {
      type: String
    },
    is_open: {
      type: Boolean,
      default: false
    }
  },
  { versionKey: false, timestamps: true }
)

export default model('GptFaceback', GptFacebackSchema, 'gpt_facebacks')
